package com.dhj.jvmstudy.chapter09;

import java.util.ArrayList;

/**
 * -Xms60m -Xmx60m -XX:SurvivorRatio=8 -XX:+PrintGCDetails -Xloggc:./logs/gc.log
 */
public class GCLogTest {

    public static void main(String[] args) throws InterruptedException {
        ArrayList<byte[]> list = new ArrayList<>();

        for (int i=0; i<500; i++){
            byte[] array = new byte[1024 * 100]; // 100KB
            list.add(array);

            Thread.sleep(50);
        }
    }

}
